package cn.wolfcode.crm.util;

import java.lang.reflect.Method;

public abstract class StringUtil {
    public static String getExpression(Method method) {
        String methodName = method.getName();
        //controllerBeanClass.getSimpleName();
        String expression = method.getDeclaringClass().getSimpleName();
        expression = expression.replace("Controller", ":" + methodName);
        expression = (expression.charAt(0)+"").toLowerCase()+expression.substring(1);
        return expression;
    }
}
